//Example 1
//Tests all supported arithmetic and boolean operators: +, -, *, /, %, <, <=, ==, !=, >=, >
#include <stdio.h>
#define WriteLine() printf("\n");
#define WriteLong(x) printf(" %lld", (long)x);
#define ReadLong(a) if (fscanf(stdin, "%lld", &a) != 1) a = 0;
#define long long long

void main(){
	long x[10];
	long y[10];
	long z;
	long i;

	i = 1;
	x[0] = 1;
	y[0] = 1;

	while(i < 10){
		x[i] = x[i-1] + 1;
		y[i] = y[i-1] + 2; 
		i = i + 1;
	}

	i = 0;
	while(i < 10){
		z = x[i] + y[i];
		WriteLong(z);
		i = i + 1;
	}

	WriteLine();

	i = 0;
	while(i < 10){
		z = x[i] - y[i];
		WriteLong(z);
		i = i + 1;
	}

	WriteLine();

	i = 0;
	while(i < 10){
		z = x[i] * y[i];
		WriteLong(z);
		i = i + 1;
	}

	WriteLine();

	i = 0;
	while(i < 10){
		z = y[i] / x[i];
		WriteLong(z);
		i = i + 1;
	}

	WriteLine();

	i = 0;
	while(i < 10){
		z = y[i] % x[i];
		WriteLong(z);
		i = i + 1;
	}

	WriteLine();
	
	i = 0;
	while(i < 10){
		if(x[i] < y[i]){
			WriteLong(1);
		}
		else{
			WriteLong(0);
		}
		i = i + 1;
	}

	WriteLine();

	i = 0;
	while(i < 10){
		if(x[i] <= y[i]){
			WriteLong(1);
		}
		else{
			WriteLong(0);
		}
		i = i + 1;
	}

	WriteLine();

	i = 0;
	while(i < 10){
		if(y[i] > x[i]){
			WriteLong(1);
		}
		else{
			WriteLong(0);
		}
		i = i + 1;
	}

	WriteLine();

	i = 0;
	while(i < 10){
		if(y[i] >= x[i]){
			WriteLong(1);
		}
		else{
			WriteLong(0);
		}
		i = i + 1;
	}

	WriteLine();

	i = 0;
	while(i < 10){
		if(x[i] != y[i]){
			WriteLong(1);
		}
		else{
			WriteLong(0);
		}
		i = i + 1;
	}

	WriteLine();

	i = 0;
	while(i < 10){
		if(x[i] == y[i]){
			WriteLong(1);
		}
		else{
			WriteLong(0);
		}
		i = i + 1;
	}

	WriteLine();


}

/* Expected output:
 2 5 8 11 14 17 20 23 26 29
 0 -1 -2 -3 -4 -5 -6 -7 -8 -9
 1 6 15 28 45 66 91 120 153 190
 1 1 1 1 1 1 1 1 1 1
 0 1 2 3 4 5 6 7 8 9
 0 1 1 1 1 1 1 1 1 1
 1 1 1 1 1 1 1 1 1 1
 0 1 1 1 1 1 1 1 1 1
 1 1 1 1 1 1 1 1 1 1
 0 1 1 1 1 1 1 1 1 1
 1 0 0 0 0 0 0 0 0 0
*/